#!/bin/bash
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

# skip their stupid [ -f `which java` ] test, which will always fail on Gentoo
export APP_SKIP_J2SE_TEST=1
export GENTOO_VM=$( eval $(gjl --get-vm -p sqldeveloper) && echo ${gjl_vm} )
export JAVA_HOME=$(java-config -o)

cd /opt/sqldeveloper/sqldeveloper/bin && exec bash sqldeveloper $@
